#include "widget.h"
#include "ui_widget.h"
#include "iplinewidget.h"
#include <QDebug>

IpWidget::IpWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::IpWidget)
{
    ui->setupUi(this);
    IpLineWidget *widget = new IpLineWidget(this);
    ui->horizontalLayout_2->addWidget(widget);
    widget->show();
//    widget->setBackground(QColor(111,0,0,255));
//    widget->setForeground(QColor(255,255,255,255));
    widget->setIpadd("192.168.1.0");
//    widget->setRange(QSize(0,100));
    qDebug()<<"getBoxText:"<<widget->getIpadd();
}

IpWidget::~IpWidget()
{
    delete ui;
}
